// C:\Projects\Sport\src\VideoEditor\VideoEditor\Classes\RecvMessageDlg.cpp : implementation file
//

#include "stdafx.h"
#include "RecvMessageDlg.h"
#include "PubDefs.h"

// CRecvMessageDlg dialog

IMPLEMENT_DYNAMIC(CRecvMessageDlg, CDialog)

CRecvMessageDlg::CRecvMessageDlg(void* pParam, RecvDxMessage fRecvMessage, CWnd* pParent /*=NULL*/)
	: CDialog(CRecvMessageDlg::IDD, pParent),
	  m_pParam(pParam),
	  m_fRecvMessage(fRecvMessage)
{
}

CRecvMessageDlg::~CRecvMessageDlg()
{
}

void CRecvMessageDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}

LRESULT CRecvMessageDlg::OnGraphNotify(WPARAM inWParam, LPARAM inLParam)
{
	if (m_fRecvMessage != NULL)
	{
		m_fRecvMessage(m_pParam, inWParam, inLParam);
	}
	return S_OK;
}

BOOL CRecvMessageDlg::OnInitDialog()
{
	return CDialog::OnInitDialog();
}


BEGIN_MESSAGE_MAP(CRecvMessageDlg, CDialog)
	ON_MESSAGE(WM_GRAPHNOTIFY, OnGraphNotify)
END_MESSAGE_MAP()


// CRecvMessageDlg message handlers
